#{extends 'frame.html' /}

#{set title:'平台返款-检查买手垫付本金' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/widget.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/jquery.pagination.css'}" />

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/task/sysRefound.css'}" />

#{/set}



<div class="contentCard">

	<div class="contentTitle">

		<span class="iconfont">&#xf00ef;</span>

		检查买手垫付本金

		&nbsp;

		<span class="grey">(以下任务买手已确认收货并好评，请检查买手垫付金额，确认无误后进行返款)</span>

	</div>

	<div class="contentBody">

	

	<form id="queryForm">

		<div class="searchPanel">

			<span class="floatLeft mr-8">平台</span>

			<select class="floatLeft mr-8 platform">

			<option value="">全部</option>

			#{list items:platforms, as:'p'}

				<option value="${p}" ${selectedPlatform==p?'selected':''}>${p.title}</option>

			#{/list}

			</select>

			<span class="floatLeft">店铺</span>

			<select class="floatLeft mr-8" id="shop">

				<option value="">全部</option>

			</select>

			<span class="floatLeft">任务编号</span>

			<input class="floatLeft mr-8" type="text" name="taskId" id="txtTaskId">

			<span class="floatLeft">订单号</span>

			<input class="floatLeft mr-8" type="text" name="order" id="orderId">

			<span class="floatLeft">买号</span>

			<input class="floatLeft mr-8" type="text" name="account" id="buyerAccountId">

			<a class="stdColorButton low-button floatLeft" id="queryTask" href="javascript:;">查询</a>

		</div>

	</form>

		<div class="taskTypeSwitchWrapper">

			<a class="taskTab focus" href="javascript:;" id="waitCheckOrder" status="WAIT_SELLER_CONFIRM_SYS_REFUND">待检查的返款订单</a>

			<a class="taskTab" href="javascript:;" id="buyerRejectSys" status="BUYER_REJECT_SYS_REFUND">买手驳回订单</a>

			<a class="taskTab" href="javascript:;" id="refunding" status="REFUNDING">已确认返款的订单</a>

		</div>

		<form id="refundForm">

		<div class="taskWrapper" style="overflow: hidden;" id="taskContainer" sellerId="${user?.id}">

		</div>

		</form>

		<!--这里是分页区域-->

		<div class="taskPagination"></div>

		<div class="pagin-btm clearFix">

			<div class="pagination"></div>

		</div>

		<div class="popWrapper" style="display: none;" id="tr_loading_mask">

			<div class="maskLayer"></div>

			<img class="tr_juhua" src="@{'/public/images/pre_loading.gif'}" />		

		</div>

	</div>

</div>

<textarea id="taskCellTemp" class="muban">

{{#results}}

	<div class="taskCell">

		<div class="title">

			<span class="shop mr-20"> <i class="plat_small {{platIcon}}"></i>

				{{shopName}}

			</span>

			<span class="">

				任务编号：

				<span>{{taskIdStr}}-{{id}}</span>

				<a href="/buyer/task/{{id}}" target="_blank" class="btnViewTask blue"  tid="{{id}}">[详情]</a>

			</span>

			<span class="floatRight">

				买手确认收货时间：

				<span>{{modifyTimeStr}}&nbsp;</span>

			</span>

		</div>



		<div class="body">

			<table class="normTable">

				<thead>

					<tr>

						<td class="item-list"></td>

						<td class="nick"></td>

						<td class="pic"></td>

						<td class="price"></td>

						{{#isWaitRefund}}

						<td class="opera"></td>

						{{/isWaitRefund}}

					</tr>

				</thead>

				<tbody>

					<tr data-tid="{{id}}">

						<td class="item-list">

							<div class="item-box">

								<div class="pic">

									<a href="{{itemPic}}" target="_black"><img src="{{itemPic}}" /></a>

								</div>

								<p class="title">{{itemTitle}}</p>

							</div>

							{{#additionalItemTitle}}

							<div class="item-box">

								<div class="pic">

									<a href="{{additionalItemPicUrl}}" target="_black"><img src="{{additionalItemPicUrl}}" /></a>

								</div>

								<p class="title">{{additionalItemTitle}}</p>

							</div>

							{{/additionalItemTitle}}

						</td>

						<td class="nick"> 

							<em class="cap tdLeft">买号:<span class="bold green">{{buyerAccountNick}}</span></em><br>

							<em class="cap tdLeft">订单号:<span class="bold green">{{orderId}}</span></em><br>

							<em class="cap tdLeft">任务佣金:<span class="bold green">{{taskRewardIngot}}金币</span></em>

						</td>

						<td class="pic">

							<em class="cap">订单付款截图</em>

							<span class="bold"><a href="{{itemPicUrl}}" target="_black"><img src="{{itemPicUrl}}"></a></span>

						</td>

						<td class="price">

							<em class="cap">退款金额</em>

							{{#isWaitRefund}}

							<input type="text" value="{{price}}" class="J_refundAmt bold red" style="width:65px" />元

							{{/isWaitRefund}}

							{{^isWaitRefund}}

							<span class="bold red">{{price}}</span>&nbsp;&nbsp;元

							{{/isWaitRefund}}

						</td>

						{{#isWaitRefund}}

						<td class="opera">

							<a class="J_confirmRefund btnConfirmDeli stdColorButton mt20" href="javascript:;">确认退款</a>

						</td>

						{{/isWaitRefund}}

					</tr>

				</tbody>

			</table>

		</div>

	</div>

	{{/results}}

</textarea>

#{set 'moreScripts'}

<script src="@{'/public/javascripts/jquery.pagination.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/jquery.number.min.js'}" type="text/javascript"></script>

<script src="@{'/public/javascripts/task/sysRefund.js'}" type="text/javascript"></script>

<script type="text/javascript">App.module = 'myTask';</script>

#{/set}